import './index.css'
import PropTypes from 'prop-types'
function Student(props){
    return (
        <div className="student">
            <p>name: {props.name}</p>
            <p>age: {props.age}</p>
            <p>isStudent: {props.isStudent?"true":"false"}</p>
        </div>
    )
}

Student.prototype = {
    name: PropTypes.string,
    age : PropTypes.number,
    isStudent: PropTypes.bool
}

Student.defaultProps = {
    name : 'larry',
    age:0,
    isStudent:false
}
export default Student